package com.github.ghsea.cc.repository;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import com.github.ghsea.cc.module.InterceptedLog;

@MapperScan
public interface InterceptedLogDao {

	void insert(@Param("log") InterceptedLog log);

	/**
	 * 根据ip查询未过期的拦截记录
	 * 
	 * @param ip
	 */
	Long queryNotExpiredLog(@Param("ip") String ip,@Param("ruleId")Long ruleId);

	void updateByPk(@Param("log") InterceptedLog log);
}
